package com.watson.nettydemo;


import com.watson.nettydemo.config.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.InetSocketAddress;

/**
 * https://blog.csdn.net/weixin_43211195/article/details/107061038
 *
 */
@SpringBootApplication
@MapperScan("com.watson.nettydemo.mapper")
public class NettyApplication {
    public static void main(String[] args) {
        SpringApplication.run(NettyApplication.class,args);
        /**启动服务端*/
        NettyServer nettyServer = new NettyServer();
        nettyServer.start(new InetSocketAddress("127.0.0.1",8087));

}
}
